package com.shop.cereshop.app.dao.dl;

import com.shop.cereshop.app.dl.logic.domain.CereShopAnnouncement;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CereShopAnnouncementDao {
    int deleteByPrimaryKey(Long announcementId);

    int insert(CereShopAnnouncement record);

    int insertSelective(CereShopAnnouncement record);

    CereShopAnnouncement selectByPrimaryKey(Long announcementId);

    int updateByPrimaryKeySelective(CereShopAnnouncement record);

    int updateByPrimaryKey(CereShopAnnouncement record);

    List<CereShopAnnouncement> getAnnouncements(@Param("announcementType") String announcementType);

}